package com.web.admin.global.model;

import com.web.base.auth.message.AppResponse;

public class App
{
	private Integer id; // 编号
	private String name; // 名称
	
	public App()
	{
	}
	
	public static App toApp(AppResponse response)
	{
		if (response == null)
			return null;
		
		App app = new App();
		app.setId(response.getId());
		app.setName(response.getName());
		return app;
	}

	public Integer getId()
	{
		return id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}
	
	
	
	
}
